import {Injectable} from "@nestjs/common";
import {SupplierService} from "@/modules/supplier/service/supplier.service";
import {Supplier} from "@/entitys/supplier/supplier.entity";

@Injectable()
export class ShopStoreSupplierService extends SupplierService{

    async create(obj: Supplier) {
        return this.txExec(async (entityManager) => {
            return entityManager.insert(this.repository.target, obj);
        })
    }
}